import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';
import 'package:finance_app/src/entities/ocr_attachment_entity.dart';

class LeaveItemEntity with JsonConvert<LeaveItemEntity> {
  @JSONField(name: "data_type")
  String dataType;
  int id;
  @JSONField(name: "company_id")
  int companyId;
  @JSONField(name: "employee_id")
  int employeeId;
  @JSONField(name: "employee_name")
  String employeeName;
  @JSONField(name: "leave_type_id")
  int leaveTypeId;
  @JSONField(name: "leave_type_name")
  String leaveTypeName;
  @JSONField(name: "start_date")
  String startDate;
  @JSONField(name: "start_date_meridian")
  String startDateMeridian;
  @JSONField(name: "end_date")
  String endDate;
  @JSONField(name: "end_date_meridian")
  String endDateMeridian;
  String notes;
  num days;
  @JSONField(name: "action_at")
  dynamic actionAt;
  @JSONField(name: "action_by")
  dynamic actionBy;
  @JSONField(name: "rejected_reason")
  dynamic rejectedReason;
  List<OcrAttachmentEntity> attachments;
  String status;
  @JSONField(name: "created_at")
  String createdAt;
  @JSONField(name: "updated_at")
  String updatedAt;
}
